import request from "../utils/request";


// TODO:从后台获取学生数据
export const getTeacherList = (currentPage:number, pageSize:number) => 
    request<any, any>({
        url: '/teacher/list',
        method: 'get',
        params: {
            currentPage,
            pageSize
        }
    })

export const addTeacher = (tea:DBTeacher)=>
    request<any,any>(
      {
        url:'/teacher/add',
        method:'post',
        data:tea
      })